﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTOAuction;

namespace DAOAuction
{
	public class DAOLichDangKy
	{
		private static LinqDataContext db = new LinqDataContext(global::DAOAuction.Properties.Settings.Default.QUANLYGIAODUCConnectionString);

		public static LICHDANGKY layLichDangKy(int namHoc, int hocKy)
		{
			try
			{
				return db.LICHDANGKies.First(ldk => ldk.NAMHOC == namHoc && ldk.HOCKY == hocKy);
			}
			catch
			{
				throw;
			}
		}
	}
}
